from toscawidgets.resources import JSLink
from toscawidgets.widgets.extJS.core import Container

PanelRowExpander_js = JSLink(
    modname=__name__, filename='static/plugin/PanelRowExpander.js')

NestedGridRowExpander_js = JSLink(
    modname=__name__, filename='static/plugin/NestedGridRowExpander.js')

class PanelRowExpander(Container):
    template = "mako:toscawidgets.widgets.extJS.templates.plugin.panelrowexpander"
    javascript = [PanelRowExpander_js]
    
class NestedGridRowExpander(Container):
    template = "mako:toscawidgets.widgets.extJS.templates.plugin.nestedgridrowexpander"
    javascript = [NestedGridRowExpander_js]    